package com.bins.performance.testing.number;

import cn.hutool.core.util.NumberUtil;
import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;

@Slf4j
public class NumberTesting {

    public static BigDecimal testDebug() {
        Integer saleAmount = 10000000;
        Integer reportProfitRadio = 5000;

        BigDecimal tmp = NumberUtil.div(new BigDecimal(saleAmount).multiply(new BigDecimal(reportProfitRadio)), new BigDecimal(10000));
        return tmp;
    }

    public static void main(String[] args) {
        BigDecimal tmp = testDebug();
        log.info("{}", tmp);
    }
}
